package com.acim.mobile.app 
{
	import com.acim.mobile.app.manager.LayerManager;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.text.TextField;
	
	import mx.collections.ArrayCollection;
	
	import org.acim.manager.ResourceManager;
	
	import spark.components.List;
	import spark.components.TextArea;
	
	/**
	 * 应用入口
	 */
	public class MainEntry
	{
		private var _view:DisplayObject;
		private var _textArea:TextArea;
		private var _list:List;
		
		public function MainEntry()
		{
		}
		
		public function setup(sprite:Sprite,view:DisplayObject):void
		{
			trace("ACIM MOBILE APP SETUP");
			var sp:Sprite = sprite;
			sp.graphics.beginFill(0xff0000,.5);
			sp.graphics.drawCircle(300,300,150);
			sp.graphics.endFill();
			
			var txt:TextField = new TextField();
			txt.width = 300;
			txt.height = 400;
			txt.text = "hello world";
			sp.addChild(txt);
			
			_view = view;
			_view["textArea"].text = "hello world";
			
			_textArea = _view["textArea"];
			_textArea.text = "how are u";
			
			_list = _view["list"];
			_list.dataProvider = new ArrayCollection(new Array("tide","seven","timoo","dd","aray"));
		}
	}
}